package cn.zane.principle.singleResponsibilityPrinciple.oldCode;

/**
 * @Author: zane
 * @Date: 2024/12/12
 * @Description:
 */
public class VideoUserService {

    public void serveGrade(String userType) {
        if ("VIP用户".equals(userType)) {
            System.out.println("VIP用户，视频1080P蓝光");
        } else if ("普通用户".equals(userType)) {
            System.out.println("普通用户，视频720P超清");
        } else if ("访客用户".equals(userType)) {
            System.out.println("访客用户，视频480P高清");
        }
    }

    public static void main(String[] args) {
        VideoUserService service = new VideoUserService();
        service.serveGrade("访客用户");
    }
}
